// 封装跳转
function goto(action, url, backNum) {
    switch (action) {
        case 'push':
            uni.navigateTo({ url });
            break;
        case 'replace':
            uni.redirectTo({ url });
            break;
        case 'back':
            uni.navigateBack({
                delta: backNum || 1
            });
            break;
        case 'switch':
            uni.switchTab({ url });
            break;
        case 'reLaunch':
            uni.reLaunch({ url });
            break;
    }
}
export {
    goto
}